home *** CD-ROM | disk | FTP | other *** search
/ Aminet 52 / Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso / Aminet / util / moni / Scout-src.lha / source / scout_net_protos.h < prev    next >
C/C++ Source or Header  |  2002-09-16  |  2KB  |  97 lines

  1. /**
  2.  * Scout - The Amiga System Monitor
  3.  *
  4.  *------------------------------------------------------------------
  5.  *
  6.  * This program is free software; you can redistribute it and/or modify
  7.  * it under the terms of the GNU General Public License as published by
  8.  * the Free Software Foundation; either version 2 of the License, or
  9.  * any later version.
  10.  *
  11.  * This program is distributed in the hope that it will be useful,
  12.  * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  14.  * GNU General Public License for more details.
  15.  *
  16.  * You should have received a copy of the GNU General Public License
  17.  * along with this program; if not, write to the Free Software
  18.  * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
  19.  *
  20.  * You must not use this source code to gain profit of any kind!
  21.  *
  22.  *------------------------------------------------------------------
  23.  *
  24.  * @author Andreas Gelhausen
  25.  * @author Richard Körber <rkoerber@gmx.de>
  26.  */
  27.  
  28.  
  29. /* Prototypes for functions defined in
  30. scout_net.c
  31.  */
  32.  
  33. extern char * CMD_BEGIN;
  34.  
  35. extern char * CMD_USER;
  36.  
  37. extern char * CMD_PASSWORD;
  38.  
  39. extern char * CMD_END;
  40.  
  41. extern char * CMD_DONE;
  42.  
  43. extern char * CMD_ERROR;
  44.  
  45. extern char * CMD_CONNECTED;
  46.  
  47. extern int server_socket;
  48.  
  49. extern int client_socket;
  50.  
  51. extern BOOL clientstate;
  52.  
  53. extern BOOL serverstate;
  54.  
  55. extern BOOL shellstate;
  56.  
  57. extern char username[11];
  58.  
  59. extern char password[129];
  60.  
  61. void failtcp(void);
  62.  
  63. int inittcp(void);
  64.  
  65. int sgets(int , char * , int );
  66.  
  67. void PrintNetHelp(void);
  68.  
  69. extern struct Net_Command net_list[77];
  70.  
  71. int __stdargs SendDaemon(char * , ...);
  72.  
  73. int ReceiveDecodedEntry(UBYTE * , int );
  74.  
  75. int ConnectToServer(void);
  76.  
  77. ULONG netshellclient(void);
  78.  
  79. int isNetCall(void);
  80.  
  81. int isCommand(char * , char * );
  82.  
  83. int __stdargs SendClient(char * , ...);
  84.  
  85. int SendEncodedEntry(UBYTE * , int );
  86.  
  87. long __stdargs SendResultString(char * , ...);
  88.  
  89. int PrintOneLine(BPTR , char * );
  90.  
  91. ULONG ExecuteCommand(char * );
  92.  
  93. ULONG netdaemon(void);
  94.  
  95. int __stdargs MyDoCommand(char * , ...);
  96.  
  97.